package com.gh.pattern.observer.douyu;

import com.gh.pattern.observer.core.Event;

public class Watcher {
    public void onSing (Event e) {
        System.out.println("这是主播唱歌后要执行的逻辑");
        System.out.println( "==========主播唱歌了，观众纷纷送上飞机===========");
        System.out.println(e);
    }
    public  void  onDance (Event e) {
        System.out.println("这是主播跳舞后要执行的逻辑");
        System.out.println("============主播跳舞了，观众纷纷送上火箭============");
        System.out.println(e);
    }
}
